package com.bestcem.xm.user.grpc.client.convert;

import com.bestcem.xm.qdes.grpc.v1.services.ProjectData;
import com.bestcem.xm.user.grpc.client.dto.ProjectDataDTO;
import org.mapstruct.Mapper;
import org.mapstruct.NullValueCheckStrategy;

import java.util.List;

/**
 * 问卷相关grpc服务转换类
 *
 * @author wangyunyun <yunyun.wang@idiaoyan.com>
 * @version v1.0
 * @date 2022/6/20 15:25
 */
@Mapper(componentModel = "spring", nullValueCheckStrategy = NullValueCheckStrategy.ALWAYS)
public interface UserBpProjectGrpcConvert {

    ProjectDataDTO responseToProjectDatas(ProjectData projectData);

    List<ProjectDataDTO> responseToProjectDatas(List<ProjectData> projectDatas);
}
